include: don't mention stub headers more than once in a make rule
authorJan Beulich <jbeulich@suse.com>
Fri, 31 Mar 2023 06:34:04 +0000 (08:34 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 31 Mar 2023 06:34:04 +0000 (08:34 +0200)
commit350693582427887387f21a6eeedaa0ac48aecc3f
tree200e6fb7b05b7bf292ce35f1b2f4ec71130ed67c
parent7f55774489d2f12a23f2ac0f516b62e2709cea99
include: don't mention stub headers more than once in a make rule

When !GRANT_TABLE and !PV_SHIM headers-n contains grant_table.h twice,
causing make to complain "target '...' given more than once in the same
rule" for the rule generating the stub headers. We don't need duplicate
entries in headers-n anywhere, so zap them (by using $(sort ...)) right
where the final value of the variable is constructed.

Fixes: 6bec713f871f ("include/compat: produce stubs for headers not otherwise generated")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Anthony PERARD <anthony.perard@citrix.com>
master commit: 231ab79704cbb5b9be7700287c3b185225d34f1b
master date: 2023-03-28 14:20:16 +0200
xen/include/Makefile